﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ReceiptList.aspx.vb" Inherits="Renew.Receipts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="Styles.css" type="text/css" rel="stylesheet" />
    <title>Reciepts</title>
    	    <style type="text/css">
            .style1
            {
                text-decoration: underline;
            }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <h3 class="style1">Billing History</h3>
			<ul>
				<li>
					<strong>Completed transactions since July 2008 and their reciepts are available below</strong></li>
                <li>
					<b>NENA does not offer duplicate reciepts as part of the organizational policy</b><br />
                    If your reciept is available below, it is out of courtesy
				</li>
			</ul>			
                <asp:ListView ID="listCompletedTransactions" runat="server" OnItemCommand="ListViewReciepts_Command">
                    <LayoutTemplate>
                        <table runat="server">
                            <tr runat="server">
                                <td runat="server">
                                    <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                        style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;" width="100%">
                                        <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                            <th  runat="server">
                                                Invoices</th>
                                            <th runat="server">
                                                Invoice Name</th>
                                            <th runat="server">
                                                Invoice Type</th>
                                        </tr>
                                        <tr ID="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr id="Tr3" runat="server">
                                <td id="Td2" runat="server" 
                                    style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                                        <AlternatingItemTemplate>
                        <tr style="background-color:#FFF8DC;">
                            <td>
                            <asp:Button ID="btnViewReciept" runat="server"
                            CommandArgument='<%# GetTransactionPaymentID(Eval("TransactionID_NENA")) %>'  CommandName="ViewReciept" Text="View Receipt" />
                            </td>
                            <td>                           
                                <asp:Label ID="lblTransactionName" runat="server" 
                                    Text='<%# Eval("TransactionName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" 
                                    Text='<%# GetTransactionType(Eval("TransactionID_NENA")) %>' />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <EmptyDataTemplate>
                        <table id="Table2" runat="server" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                            <tr>
                                <td>
                                    No Reciepts Available.</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <ItemTemplate>
                        <tr style="background-color:#DCDCDC;color: #000000;">
                            <td>
                            <asp:Button ID="btnViewReciept" runat="server"
                            CommandArgument='<%# GetTransactionPaymentID(Eval("TransactionID_NENA")) %>'  CommandName="ViewReciept" Text="View Reciept" />
                            </td>
                            <td>                           
                                <asp:Label ID="lblTransactionName" runat="server" 
                                    Text='<%# Eval("TransactionName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" 
                                    Text='<%# GetTransactionType(Eval("TransactionID_NENA")) %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>
                
                			<p>
				<asp:Button id="btnCancel" runat="server" Text="Return to Membership Website" CausesValidation="False"></asp:Button>
			</p>

    </div>
    </form>
</body>
</html>
